package demo;


import demo.standard.ConcreteCommand1;
import demo.standard.ConcreteCommand2;
import demo.standard.Invoker;
import demo.standard.Receiver;

public class ClientForStandard {

    public static void main(String[] args) {

        Invoker invoker = new Invoker();
        Receiver receiver = new Receiver();
        invoker.addCommand(new ConcreteCommand1(receiver));
        invoker.addCommand(new ConcreteCommand2(receiver));
        invoker.use();
    }
}
